package com.lzk.store.controller;

import com.lzk.JsonResult;
import com.lzk.domain.Store;
import com.lzk.store.service.impl.StoreServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("store")
public class StoreController {

    @Autowired
    private StoreServiceImpl storeService;

    @PostMapping
    public JsonResult save(@RequestBody Store store){
        return storeService.save(store);
    }
}
